package com.dlx.model.mem;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dlx.model.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 会员表
 * </p>
 *
 * @author nglon
 * @since 2021-11-08
 */
@Getter
@Setter
@TableName("mem_info")
@ApiModel(value = "MemInfo对象", description = "会员表")
public class MemInfo extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("会员账号id")
    @TableField("user_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long userId;

    @ApiModelProperty("会员等级id")
    @TableField("level_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long levelId;

    @ApiModelProperty("微信openid")
    @TableField("openid")
    private String openid;

    @ApiModelProperty("手机号")
    @TableField("mobile")
    private String mobile;

    @ApiModelProperty("密码")
    @TableField("password")
    private String password;

    @ApiModelProperty("昵称")
    @TableField("nickname")
    private String nickname;

    @ApiModelProperty("性别 0 女，1 男")
    @TableField("sex")
    private Boolean sex;

    @ApiModelProperty("年龄")
    @TableField("age")
    private Integer age;

    @ApiModelProperty("用户头像")
    @TableField("avatar")
    private String avatar;

    @ApiModelProperty("用户签名")
    @TableField("sign")
    private String sign;

    @ApiModelProperty("会员余额")
    @TableField("balance")
    private BigDecimal balance;

    @ApiModelProperty("总计充值金额")
    @TableField("total_recharge")
    private BigDecimal totalRecharge;

    @ApiModelProperty("会员积分")
    @TableField("points")
    private Integer points;

    @ApiModelProperty("是否禁用 1（true）已禁用，  0（false）未禁用")
    @TableField("is_disabled")
    private Boolean isDisabled;

}
